package org.hxyjs.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class GameDetailsRecord implements Serializable {
    private String gdrno;

    private String crno;

    private String tocdno;

    private Date gdrtime;

    private String gdrplayer;

    private String result;

    private static final long serialVersionUID = 1L;

    public String getGdrno() {
        return gdrno;
    }

    public void setGdrno(String gdrno) {
        this.gdrno = gdrno;
    }

    public String getCrno() {
        return crno;
    }

    public void setCrno(String crno) {
        this.crno = crno;
    }

    public String getTocdno() {
        return tocdno;
    }

    public void setTocdno(String tocdno) {
        this.tocdno = tocdno;
    }

    public Date getGdrtime() {
        return gdrtime;
    }

    public void setGdrtime(Date gdrtime) {
        this.gdrtime = gdrtime;
    }

    public String getGdrplayer() {
        return gdrplayer;
    }

    public void setGdrplayer(String gdrplayer) {
        this.gdrplayer = gdrplayer;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        GameDetailsRecord other = (GameDetailsRecord) that;
        return (this.getGdrno() == null ? other.getGdrno() == null : this.getGdrno().equals(other.getGdrno()))
            && (this.getCrno() == null ? other.getCrno() == null : this.getCrno().equals(other.getCrno()))
            && (this.getTocdno() == null ? other.getTocdno() == null : this.getTocdno().equals(other.getTocdno()))
            && (this.getGdrtime() == null ? other.getGdrtime() == null : this.getGdrtime().equals(other.getGdrtime()))
            && (this.getGdrplayer() == null ? other.getGdrplayer() == null : this.getGdrplayer().equals(other.getGdrplayer()))
            && (this.getResult() == null ? other.getResult() == null : this.getResult().equals(other.getResult()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getGdrno() == null) ? 0 : getGdrno().hashCode());
        result = prime * result + ((getCrno() == null) ? 0 : getCrno().hashCode());
        result = prime * result + ((getTocdno() == null) ? 0 : getTocdno().hashCode());
        result = prime * result + ((getGdrtime() == null) ? 0 : getGdrtime().hashCode());
        result = prime * result + ((getGdrplayer() == null) ? 0 : getGdrplayer().hashCode());
        result = prime * result + ((getResult() == null) ? 0 : getResult().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", gdrno=").append(gdrno);
        sb.append(", crno=").append(crno);
        sb.append(", tocdno=").append(tocdno);
        sb.append(", gdrtime=").append(gdrtime);
        sb.append(", gdrplayer=").append(gdrplayer);
        sb.append(", result=").append(result);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}